Texture Wrapping Values
A drawing engine may support OpenGL texture wrapping, in which case you might need to specify a texture wrapping mode in the u and v parametric directions. You specify an engine's texture wrapping modes by assigning a value to itskQATagGL_TextureWrapU
andkQATagGL_TextureWrapV
state variables. The default value of both these variables for a drawing engine that supports OpenGl texture wrapping iskQAGL_Repeat
. You can use the following constants to specify a texture wrapping mode.
#define kQAGL_Repeat 0 #define kQAGL_Clamp 1Constant descriptions
kQAGL_Repeat
- The integer part of a u or v coordinate is ignored, thereby causing a texture to be repeated across the surface of an object.
kQAGL_Clamp
- The u or v coordinates are clamped to the range [0, 1]. This mode prevents wrapping artifacts from occurring when a single texture is mapped onto an object.